package com.cashmama.market.api.application.controller.user.profile.request;

import com.cashmama.market.api.infras.utils.ParamsValidateUtil;
import com.fqgj.common.api.ParamsObject;
import org.apache.commons.lang3.StringUtils;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-05-15 15:48
 **/
public class UserPushRiskRequest extends ParamsObject {

    private String riskNo;

    public String getRiskNo() {
        return riskNo;
    }

    public UserPushRiskRequest setRiskNo(String riskNo) {
        this.riskNo = riskNo;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(StringUtils.isEmpty(riskNo), "riskNo cannot be empty");
    }
}
